package cn.vshare.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * (Role)实体类
 *
 * @author makejava
 * @since 2018-09-14 11:58:14
 */
public class Role implements Serializable {
    private static final long serialVersionUID = -28058859516605954L;
    
    private String id;
    
    private String name;

    private int isForbidden;

    private Set<PermissionFirst>permissionFirstHashSet=new HashSet<>();
    private Set<PermissionSecond>permissionSecondHashSet=new HashSet<>();

    public Role() {
    }

    public Role(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<PermissionFirst> getPermissionFirstHashSet() {
        return permissionFirstHashSet;
    }

    public void setPermissionFirstHashSet(Set<PermissionFirst> permissionFirstHashSet) {
        this.permissionFirstHashSet = permissionFirstHashSet;
    }

    public int getIsForbidden() {
        return isForbidden;
    }

    public void setIsForbidden(int isForbidden) {
        this.isForbidden = isForbidden;
    }

    public Set<PermissionSecond> getPermissionSecondHashSet() {
        return permissionSecondHashSet;
    }

    public void setPermissionSecondHashSet(Set<PermissionSecond> permissionSecondHashSet) {
        this.permissionSecondHashSet = permissionSecondHashSet;
    }
}